package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2021-03-12
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.project_file_records")
public class ProjectFileRecords implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键id */
	@TableId("xfr_id")
	private Long id;
	/** 文件id */
	@TableField("xfr_file_id")
	private Long fileId;
	/** 人员id */
	@TableField("xfr_user_id")
	private Long userId;
	/** 记录类型(1:查看,2:下载) */
	@TableField("xfr_flag")
	private String flag;
	/** 创建用户id */
	@TableField("xfr_createuser_id")
	private Long createuserId;
	/** 创建时间 */
	@TableField("xfr_createtime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtimeTi;
	/** 修改用户名id */
	@TableField("xfr_modifyuser_id")
	private Long modifyuserId;
	/** 修改时间 */
	@TableField("xfr_modifytime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifytimeTi;

	/** 下载时间 */
	@TableField(exist = false) // 表示该属性在数据表里不存在
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime downTime;
	/** 下载时间 */
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String downUser;
	/** 上传时间 */
	@TableField(exist = false) // 表示该属性在数据表里不存在
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime uploadTime;
	/** 上传时间 */
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String uploadUser;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFileId() {
		return fileId;
	}

	public void setFileId(Long fileId) {
		this.fileId = fileId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Long getCreateuserId() {
		return createuserId;
	}

	public void setCreateuserId(Long createuserId) {
		this.createuserId = createuserId;
	}

	public LocalDateTime getCreatetimeTi() {
		return createtimeTi;
	}

	public void setCreatetimeTi(LocalDateTime createtimeTi) {
		this.createtimeTi = createtimeTi;
	}

	public Long getModifyuserId() {
		return modifyuserId;
	}

	public void setModifyuserId(Long modifyuserId) {
		this.modifyuserId = modifyuserId;
	}

	public LocalDateTime getModifytimeTi() {
		return modifytimeTi;
	}

	public void setModifytimeTi(LocalDateTime modifytimeTi) {
		this.modifytimeTi = modifytimeTi;
	}

	public LocalDateTime getDownTime() {
		return downTime;
	}

	public void setDownTime(LocalDateTime downTime) {
		this.downTime = downTime;
	}

	public String getDownUser() {
		return downUser;
	}

	public void setDownUser(String downUser) {
		this.downUser = downUser;
	}

	public LocalDateTime getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(LocalDateTime uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getUploadUser() {
		return uploadUser;
	}

	public void setUploadUser(String uploadUser) {
		this.uploadUser = uploadUser;
	}

	@Override
	public String toString() {
		return "ProjectFileRecords [id=" + id + ", fileId=" + fileId + ", userId=" + userId + ", flag=" + flag
				+ ", createuserId=" + createuserId + ", createtimeTi=" + createtimeTi + ", modifyuserId=" + modifyuserId
				+ ", modifytimeTi=" + modifytimeTi + ", downTime=" + downTime + ", downUser=" + downUser
				+ ", uploadTime=" + uploadTime + ", uploadUser=" + uploadUser + "]";
	}

}
